package top.soulblack.purchasesale.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import top.soulblack.purchasesale.model.OrderDetail;
import top.soulblack.purchasesale.model.VO.OrderDetailVO;

import java.util.List;

/**
 * @Author: 韦溜溜
 * @Description:
 * @Date: Create in 21:40 2019/7/10
 */
@Mapper
public interface OrderDetailMapper {

    Integer insertOrderDetailList(List<OrderDetail> orderDetailList);

    List<OrderDetailVO> findVOByOrderId(String orderId);

    @Select("select *from order_detail WHERE order_detail.order_id = #{orderId}")
    List<OrderDetail> selectByOrderId(@Param("orderId") String orderId);

}
